#include "widget.h"
#include "ui_widget.h"
#include<QDebug>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    ui->comboBox_name->addItem("donk");
    ui->comboBox_name->addItem("faker");

    ui->comboBox_old->addItem("3");
    ui->comboBox_old->addItem("29");

    ui->comboBox_position->addItem("索拉里斯");
    ui->comboBox_position->addItem("韩国");
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
    qDebug()<<ui->comboBox_name->currentText()<< " "<<
              ui->comboBox_position->currentText()<<" "<<
              ui->comboBox_old->currentText();
}
